package cn.sciento.farm.devicemanager.gateway.uplink.service.base;


import cn.sciento.farm.devicemanager.gateway.uplink.service.DataAdapter;

public abstract class AbstractStringAdapter implements DataAdapter {

    @Override
    public void handle(String[] subTopic, Object message) {
        String  payload = new String((byte[]) message);
        analyseStringData(subTopic,payload);
    }

    public abstract void analyseStringData(String[] subTopic, String message);
}
